import {
	createSSRApp
} from "vue";
import TabBar from '@/components/TabBar/TabBar.vue';
import HeadMenuBar from '@/components/HeadMenuBar/HeadMenuBar.vue'
import HomeIndex from "@/components/HomeIndex/HomeIndex.vue";
import uviewPlus from 'uview-plus'
import App from "./App.vue";
import axios from 'axios'
import * as Pinia from 'pinia';
import { createUnistorage } from './uni_modules/pinia-plugin-unistorage'
export function createApp() {
	// const baseUrl = "http://localhost:3000"
	const app = createSSRApp(App);
	// app.use(baseUrl)
	app.component(HomeIndex)
	app.component("TabBar", TabBar)
	app.component("HeadMenuBar", HeadMenuBar)
	app.use(uviewPlus)
	app.use(Pinia.createPinia().use(createUnistorage()))
	return {
		app,
		uviewPlus,
		Pinia,
	};
}
